package com.heisen.feignClient.factory;

import com.heisen.feignClient.log.InfoFeignLogger;

import feign.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FeignLoggerFactory;

/**
 * @author sen
 * @description
 * @date 2024/1/17 11:12
 */

public class InfoFeignLoggerFactory implements FeignLoggerFactory {

    @Override
    public Logger create(Class<?> type) {
        return new InfoFeignLogger(LoggerFactory.getLogger(type));
    }
}
